<template>
  <div class="view-container">
    <div class="main-content-container">
      <total-statistics />
      <div class="chart-total-container">
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <sale-statistics />
            </div>
          </el-col>
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <order-statistics />
            </div>
          </el-col>
        </el-row>
      </div>
      <div class="chart-total-container">
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <customer-statistics />
            </div>
          </el-col>
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <office-clerk-statistics />
            </div>
          </el-col>
        </el-row>
      </div>
      <div class="chart-total-container">
        <el-row :gutter="20">
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <product-sale-statistics />
            </div>
          </el-col>
          <el-col :span="12">
            <div class="chart-grid-content bg-purple">
              <area-sale-statistics />
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
import totalStatistics from './modules/totalStatistics.vue'
import saleStatistics from './modules/saleStatistics.vue'
import orderStatistics from './modules/orderStatistics.vue'
import customerStatistics from './modules/customerStatistics.vue'
import officeClerkStatistics from './modules/officeClerkStatistics.vue'
import areaSaleStatistics from './modules/areaSaleStatistics.vue'
import productSaleStatistics from './modules/productSaleStatistics.vue'

import {defineComponent} from 'vue'

export default defineComponent({
  components: {
    totalStatistics,
    saleStatistics,
    orderStatistics,
    customerStatistics,
    officeClerkStatistics,
    areaSaleStatistics,
    productSaleStatistics,
  },
  setup(props, context) {},
})
</script>

<style lang="scss" scoped>
.view-container {
  .main-content-container {
    .chart-total-container {
      margin-bottom: 20px;
      .el-col {
        border-radius: 8px;
      }
      .bg-purple {
        background: #fff;
      }
      .chart-grid-content {
        border-radius: 8px;
        height: 390px;
      }
    }
  }
}
</style>
